package com.he.DesignPatterns.strategy.demo2;

/**
 * @description: 环境类  促销员
 * @Author: HCL
 * @Date: 2024/9/3 14:41
 */
public class SaleMan {

    //聚合抽象策略类
    private Stratety stratety;

    public Stratety getStratety() {
        return stratety;
    }

    public void setStratety(Stratety stratety) {
        this.stratety = stratety;
    }

    //构造
    public SaleMan(Stratety stratety){
        this.stratety = stratety;
    }

    //促销员展示具体活动给客户
    public void salesManShow(){
        stratety.show();
    }
}
